package com.mceil.mceilbase.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mceil.mceilbase.R;
import com.mceil.mceilbase.bean.AddBean;

import java.util.List;

public class AddAdapter extends BaseQuickAdapter<AddBean, BaseViewHolder> {
    public AddAdapter(int layoutResId, @Nullable List<AddBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, AddBean addBean) {
        baseViewHolder.setText(R.id.tv_num,addBean.getNum()+"");

        baseViewHolder.setText(R.id.tv_first,addBean.getFirstNum()+"");
        String sign="+";

        baseViewHolder.setText(R.id.tv_sign,sign);

        baseViewHolder.setText(R.id.tv_second,addBean.getSecondNum()+"");


    }
}
